package com.zr.dao.impl;


import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.zr.dao.BaseDao;
import com.zr.dao.RoleDao;
import com.zr.model.Role;

@Repository("roleDao")
public class RoleDaoImpl<T> extends  BaseDaOImpl<T> implements RoleDao{
		
	@Resource
	private BaseDao<Role>  baseDao;

	@Override
	public Role findUserRole(int rid) {
		String hql = "from Role role where role.rid=?";
		return baseDao.get(hql, new Object[]{rid});
	}

	

	

}
